package com.backend.system.beans.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 给角色分配菜单
 *
 * @author backend-manage
 */
@ApiModel
@Data
public class GrantMenusToRoleReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 5513679897605090485L;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", required = true)
    private Long roleId;

    /**
     * 菜单ID
     */
    @NotEmpty(message = "菜单ID列表不能为空")
    @ApiModelProperty(value = "菜单ID列表", required = true)
    private List<Long> menuIds;
}
